<template>
	<view class="column-css" style="height: 100%;">
		<view class="column-css" style="height: 100%;">
			<view class="column-css" style="height: 100%; margin: 20rpx;">
				<view class="column-css" style="background: #FFFFFF;padding: 20rpx;flex: 1;">
					<u-parse :content="dom"></u-parse>
					<view class="postfix">
						<!-- <view class="footer">
							
							<u-checkbox-group v-model="checkboxValue" activeColor="#00468C" @change="checkboxChange">
								<u-checkbox size="16" name="checked"></u-checkbox>
							</u-checkbox-group>
							<view class="text">
								<text>我已阅读并同意开立平安银行II类户服务个人信息授权协议</text>
							</view>
						</view> -->
						<view v-if="countdown != 0" class="view-deltorder" style="background: #D9D9D9;color: #FFFFFF;"
							@click="onorder()">请仔细阅读({{countdown}})
						</view>
						<view v-if="countdown == 0"
							style="width: 100%; background: #FFFFFF;">
							<view style="width: 100%;height: 20rpx;background: #fff;color: ;"></view>
							<view
								style="padding: 15rpx;text-align: center;color: #FFFFFF;margin: 5rpx 30rpx; background: #2B7CFF;border-radius: 5rpx;"
								@click="addpaymentin">
								+开通收款账号
							</view>
							<!-- <picker style="flex: 1;" @change="bindPickerChange" :value="index" :range="array">
								<view style="padding: 20rpx;text-align: center;color: #FFFFFF;margin: 5rpx 30rpx; background: #2B7CFF;border-radius: 5rpx;">+创建收款账号</view>
							</picker> -->
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import uParse from '@/components/u-parse/u-parse.vue'
	export default {
		data() {
			return {
				timer: null, 
				countdown: 3,
				dom: ''
			};
		},
		methods: {
			addpaymentin(){
				uni.navigateTo({
					url: `../personal/uploadcar`
				});
			},
			getDom() {
				this.wxRequest({
					url: `${this.API}/waybill/showText`,
					method: 'GET',
					success: (res) => {
						this.dom = res.data.data
						console.log(this.dom)
					}
				})
			}
		},
		onLoad() {
			this.getDom()
			this.timer = setInterval(() => {
				this.countdown--;
				if (this.countdown < 0) {
					this.countdown = 0;
					clearInterval(this.timer);
				}
			}, 1000);
		},
		components: {
		    uParse
		},
	};
</script>

<style lang="scss">
	.intro-wrap {
		.intro-header {
			position: relative;
			z-index: 1;
			width: 100vw;
			height: 460rpx;
			background: #ccc;
			padding: 32rpx;

			.title {
				font-size: 60rpx;
				font-weight: bold;
				color: #333;
				margin-bottom: 32rpx;
			}

			.desc {
				font-size: 30rpx;
				font-weight: 400;
				color: #333;
				line-height: 1.5;
			}
		}

		.intro-body {
			position: relative;
			z-index: 2;
			padding: 32rpx;
			margin: -200rpx 32rpx 0;
			background: rgba(255, 255, 255, 0.3400);
			border-radius: 32rpx;
			box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.0400);

			.flex-box {
				padding: 0 50rpx;
				display: flex;
				justify-content: space-between;

				.text {
					flex: 1;
					font-size: 30rpx;
					font-weight: 500;
					color: #333333;
					text-align: center;
					line-height: 40rpx;
				}

				.icon {
					width: 60rpx;
					height: 40rpx;
					background: #eee;
				}
			}

			.flex {
				display: flex;

				.flex-item {}
			}
		}
	}


	.info-wrap {
		.bg-card {
			padding: 36rpx 24rpx 12rpx;
			position: relative;
			background: #fff;
		}

		.bg-img {
			position: absolute;
			top: 0;
			left: 0;
			width: 100.2vw;
			height: 368rpx;
			z-index: 1;
		}

		.item {
			position: relative;
			z-index: 2;
			margin-bottom: 30rpx;

			.gray-info {
				border-radius: 10rpx;
				padding: 24rpx 0 48rpx 24rpx;
				position: relative;
				.bg-info{
					width: 100%;
					height: 100%;
					position: absolute;
					z-index: 1;
					top: 0;
					left: 0;
					right: 0;
					bottom: 0;
				}
				.card {
					color: #333;
					margin-left: 36rpx;
					position: relative;
					z-index: 2;
				}

				.text {
					font-size: 30rpx;
					line-height: 44rpx;
				}

				.number {
					font-size: 44rpx;
					font-weight: 500;
				}

				.f-info {
					position: relative;
					z-index: 2;
					color: #8C614B;
					padding-top: 24rpx;
					margin-left: 36rpx;
					border-top: 2rpx dashed #8C614B;
				}

				.flex {
					display: flex;
					justify-content: space-between;
					align-items: center;
				}

				.btn {
					border-radius: 12rpx;
					padding: 12rpx 24rpx;
					font-size: 32rpx;
					border-radius: 20px;
					border: 1px solid #8C614B;
					font-weight: 400;
					color: #8C614B;
					margin-right: 24rpx;
				}
			}

			.card-info {
				margin: 24rpx 0;
				padding: 24rpx;
				color: #000;
				box-shadow: 0 0 20rpx 8rpx rgba(0, 0, 0, 0.04);
				border-radius: 8rpx;

				.flex {
					display: flex;
					justify-content: center;
					align-items: center;

					image {
						width: 70rpx;
						height: 70rpx;
					}

					.text-info {
						flex: 1;
						margin: 0 24rpx;

						.name {
							font-size: 28rpx;
						}

						.type {
							font-size: 22rpx;
							margin-top: 4rpx;
						}
					}

					.btn {
						color: #8C614B;
						padding: 12rpx 48rpx;
						font-size: 32rpx;
						background: #FFFFFF;
						box-shadow: 0 0 20rpx 0 rgba(140, 97, 75, 0.16);
						border-radius: 34rpx;
					}
				}

				.number {
					font-size: 44rpx;
					font-weight: 500;
					margin-top: 24rpx;
				}
			}
		}

		.tx-box {
			background: #fff;
			margin-top: 24rpx;
			padding: 24rpx;

			.title {
				color: #333;
				font-size: 34rpx;
				font-weight: 500;
				padding-left: 24rpx;
				border-left: 12rpx solid #F6DBB5;
			}
		}

	}

	page {
		height: 100%;
	}

	.row-css {
		display: flex;
		flex-direction: row;
	}

	.column-css {
		display: flex;
		flex-direction: column;
	}

	.view-deltorder {
		text-align: center;
		margin: 10rpx 30rpx;
		padding: 15rpx 0;
		height: auto;
		color: #007AFF;
		border-radius: 8rpx;
	}

	.postfix {
		position: fixed;
		background: #ffffff;
		border-radius: 10rpx;
		width: 100%;
		bottom: 0;
		left: 0;
		height: 150rpx;
	}

	.mini-btn {
		width: 100%;
		background: #e04b28;
		font-size: 28rpx;
		padding: 10rpx 0;
		margin: 0 20rpx;
	}

	.pop-view-text {
		padding-top: 20rpx;
		justify-content: center;
		font-size: 32rpx;
		color: #575858;
		text-align: center;
	}
	.footer {
		margin-top: 24rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	
		.text {
			font-size: 22rpx;
			font-weight: 400;
			color: #000000;
	
			text {
				color: #00468C;
			}
		}
	}
</style>
